import axios from './axios'

// 添加访问记录
export const insertRecord = async ({
  UA,
  Address,
}: {
  UA: object
  Address: object
}) => {
  const { data } = await axios.post('/api/access/insert', { UA, Address })
  return data.code ? true : false
}
